package b649a01.tomasulo;

/***
 * 
 * Class representing a pair of ROB entry number and a value. It can be used to
 * constitute arrays of registers along with the ROB entry associated with it,
 * or the Common Data Bus.
 * 
 * @author Chao Sun
 * @version 1.0
 * 
 */
public class rob_value_pair {
	// int, double register value or int memory offset or computing result
	private Double value;
	private int robEntry; // ROB entry number

	/**
	 * Constructor.
	 */
	public rob_value_pair() {
		value = new Double(0.0);
		robEntry = -1;
	}

	public void setValue(Double v) {
		value = v;
	}

	public Double getValue() {
		return value;
	}

	public void setROBEntry(int i) {
		robEntry = i;
	}

	public int getROBEntry() {
		return robEntry;
	}
}